package factorial;

public class fact {

	public static void main(String[] args) {
		int a=7;
		factor(a);
		System.out.print(factor(a));
	}
	
	public static int factor(int a) {
		if (a<=1)
			return 1;
		else
			return factor(a-1)*a;
	}

}
